﻿<UserControl
    x:Class="Results.Icons.PlayerIcon"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="200"
    d:DesignWidth="200">
    <Grid>
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup
                x:Name="VisualStateGroup">
                <VisualState
                    x:Name="M">
                    <Storyboard>
                        <ColorAnimationUsingKeyFrames
                            BeginTime="00:00:00"
                            Duration="00:00:00.0010000"
                            Storyboard.TargetName="head"
                            Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                            <EasingColorKeyFrame
                                KeyTime="00:00:00"
                                Value="Blue" />
                        </ColorAnimationUsingKeyFrames>
                        <ColorAnimationUsingKeyFrames
                            BeginTime="00:00:00"
                            Duration="00:00:00.0010000"
                            Storyboard.TargetName="shoulders"
                            Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                            <EasingColorKeyFrame
                                KeyTime="00:00:00"
                                Value="Blue" />
                        </ColorAnimationUsingKeyFrames>
                        <ColorAnimationUsingKeyFrames
                            BeginTime="00:00:00"
                            Duration="00:00:00.0010000"
                            Storyboard.TargetName="chest"
                            Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                            <EasingColorKeyFrame
                                KeyTime="00:00:00"
                                Value="Blue" />
                        </ColorAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState
                    x:Name="F">
                    <Storyboard>
                        <ColorAnimationUsingKeyFrames
                            BeginTime="00:00:00"
                            Duration="00:00:00.0010000"
                            Storyboard.TargetName="head"
                            Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                            <EasingColorKeyFrame
                                KeyTime="00:00:00"
                                Value="Magenta" />
                        </ColorAnimationUsingKeyFrames>
                        <ColorAnimationUsingKeyFrames
                            BeginTime="00:00:00"
                            Duration="00:00:00.0010000"
                            Storyboard.TargetName="shoulders"
                            Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                            <EasingColorKeyFrame
                                KeyTime="00:00:00"
                                Value="Magenta" />
                        </ColorAnimationUsingKeyFrames>
                        <ColorAnimationUsingKeyFrames
                            BeginTime="00:00:00"
                            Duration="00:00:00.0010000"
                            Storyboard.TargetName="chest"
                            Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                            <EasingColorKeyFrame
                                KeyTime="00:00:00"
                                Value="Magenta" />
                        </ColorAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Ellipse
            x:Name="head"
            Fill="Black"
            Grid.RowSpan="2" />
        <Ellipse
            x:Name="shoulders"
            Fill="Black"
            Grid.Row="2"
            Grid.RowSpan="2" />
        <Rectangle
            x:Name="chest"
            Fill="Black"
            Grid.Row="3" />
    </Grid>
</UserControl>
